# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-fixtures
pkgver=4.0.1
pkgrel=0
pkgdesc="Fixtures, reusable state for writing clean tests and more."
url="https://pypi.python.org/pypi/fixtures/"
arch="noarch"
license="MIT"
depends="
	py3-pbr
	python3
	"
makedepends="py3-setuptools"
checkdepends="py3-testtools py3-mock"
source="https://files.pythonhosted.org/packages/source/f/fixtures/fixtures-$pkgver.tar.gz"
builddir="$srcdir/fixtures-$pkgver"
options="!check" # py3-testtools depends on this

replaces="py-fixtures" # Backwards compatibility
provides="py-fixtures=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 -m testtools.run
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
722436f146768e4db1e3312a0db1edab2a7daa86107825fb2436654eaf74e00f569357531316df506ef3f80cef89ac7185aee1adf0b00a6ee85cbc9811ca8100  fixtures-4.0.1.tar.gz
"
